Analog rewrite#365
Draft
arfrie22 wants to merge 118 commits into
Draft
Conversation
…og return newest first
…mtp server that does not require authentication
…to be no more than one littleFS block (8K) in size
…size (to max 1.2MB) to make room for sensor logs; add comments to clarify the new sensor class and variables are for analog sensors (distinguish from onboard sensors)
…ptions without having to trigger a factory reset
…; move relevant operations from opensprinkler_server.cpp to program.h and cpp as program data and sensor adjustment are supposed to be fully in sync
…ional indices. this makes program adjustments and ensemble sensors more robust to sensor changes such as deletions
…to sensor.cpp, use direct binary buffer read/write as (unlike Sensor classes) it doesn't use polymorphism
…s for better organization; change sens.dat to use lazy writing (grows as necessary); improve sensor APIs to support modification and deletion using either positional index or uuid
…ctor to notification channel
…er naming conventions
…old the output content in ether_buffer first, instead, it directly outputs to otf buffer, which already handles content streaming. as a result, there is no need to check available_etherbuffer_size, and we can use smaller ether_buffer in the future
…binary dump which the UI can utilize to minimize log data size
…ptions, streamline sensor unit, group, short name by replacing long switch-case sequence with macros;
…se class and move them into specific classes like ADS1115 as not all sensors need scale and offset (AggregateSensor and WeatherSensor generally don't need that)
…to expand the base class members and subclass members
… valid/error/stable; remove get_initial_value now that sensor status is in place; add /jpa endpoint to send program adjustments (including weather-based and sensor-based) to UI to facilitate preview
… adjustment on manually started programs; update sensor::flag to uint8_t to be consistent with sensor_memory_t::flag; improve write_buf and read_buf to eliminate the need of explicitly specifying type
… is not used (enabled can be implied from the uuid value)
…urning off adjustment without losing parameters; update code to allow duplicate x value in case the user wants a sharp threshold operation
…ensors, remove USE_SENSORS and USE_ADS1115 macros; fix millis issue on 64-bit linux;
…anges to OTF are committed upstream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.